from five import grok
from Products.CMFCore.interfaces import ISiteRoot

class RedirectView(grok.View):
    grok.context(ISiteRoot)
    grok.name('redirect-view')
    grok.require('zope2.View')

    def update(self):
        # Hide the editable-object border
        self.request.set('disable_border', True)
        self.request.RESPONSE.redirect(self.context.portal_url()+'/home')

    def render(self):
        return "Sin Salida HTML"